package com.lujieni.consumer.context;


/**
 * @author
 * @Title: ErpUserContext
 * @Description:
 * @date 2022/11/21 5:30 下午
 */
public class ErpUserContext {

    private static final ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setUserCode(String userCode){
        threadLocal.set(userCode);
    }

    public static String getUserCode(){
        return threadLocal.get();
    }

    public static void remove(){
        threadLocal.remove();
    }



}
